txtLines = readlines("a.txt");
txtLinesNum = max(size(txtLines));

is_ENUM = 100*ones(1,txtLinesNum);
for i= 1:txtLinesNum
    if contains(txtLines(i),'=')
        is_ENUM(i) = 1;
    elseif contains(txtLines(i),'enum')
        is_ENUM(i) = 2;
    else
        is_ENUM(i) = 0;
    end
end



a = fopen("a.txt",'w');
for i =1:txtLinesNum
    if contains(txtLines(i),'enum')
        enum_name = txtLines(i);
    end
    if contains(txtLines(i),'=')
        printfString = strcat('SEM.',enum_name,'.',txtLines(i));
        fprintf(a,'%s\n',string(printfString));
    end
end
fclose(a);
% 
% txtLines_ = txtLines;
% for i= 1:txtLinesNum
%     if contains(txtLines_(i),'//')
%         temp = strsplit(txtLines_(i),'//')
%         txtLines_(i) = temp(1);
%     end
% end


